using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using Redboil.Bfp.Core;
using Redboil.Bfp.Dao;
using System.Collections;
using Redboil.Bfp.Model;
using Redboil.Bfp.Service;
using Castle.Core.Logging;

namespace Redboil.Bfp.Component {
    public class AuthorizationComponent : ComponentBase, IAuthorizationService {

        #region Properties

        private IOrganizationDao OrganizationDao { get; set; }
        private IRoleDao RoleDao { get; set; }

        #endregion

        public AuthorizationComponent(ILogger logger) : base(logger) {
            OrganizationDao.Test4Gene();
        }

        public IList<Role> GetRoleList() {
            User user = new User();
            return user.Roles.ToList<Role>();
        }

        public IList<Privilege> GetPermissionList() {
            throw new NotImplementedException();
            User user = new User();
            //return user.Role.ToArray<Role>();
        }
    }
}